package com.kaili.basic.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.kaili.basic.mapper.ApplicationInstallMapper;
import com.kaili.basic.pojo.dto.MdmApplicationInstalledQueryDto;
import com.kaili.basic.pojo.entity.MdmApplicationInstallExport;
import com.kaili.basic.pojo.entity.MdmApplicationInstalled;
import com.kaili.basic.pojo.vo.MdmApplicationInstallVo;
import com.kaili.basic.service.IApplicationInstallService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 *@Desc:被安装应用接口实现类
 *@author:chenmengming
 *@Time: 19-7-25 3:26
 *@Copyright: @ 2019 杭州凯立通信有限公司 版权所有
 *@Warning 本内容仅限于公司内部传阅，禁止外泄或用于其他商业目的
 */
@Service
public class ApplicationInstallServiceImpl extends ServiceImpl<ApplicationInstallMapper, MdmApplicationInstalled> implements IApplicationInstallService {

    @Autowired
    private ApplicationInstallMapper applicationInstallMapper;


    @Override
    public Page<MdmApplicationInstallVo> getMdmApplicationByKeywords(Page<MdmApplicationInstallVo> page, MdmApplicationInstalledQueryDto dto) {
        List<MdmApplicationInstallVo> installVoList=applicationInstallMapper.getMdmApplicationByKeywords(page,dto);
        return page.setRecords(installVoList);
    }

    @Override
    public List<MdmApplicationInstallExport> getApplicationxport(MdmApplicationInstalledQueryDto mdmApplicationInstalledQueryDto) {
        System.out.println("#########"+applicationInstallMapper.getApplicationxport(mdmApplicationInstalledQueryDto));
        return applicationInstallMapper.getApplicationxport(mdmApplicationInstalledQueryDto);
    }
}
